import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import store from './store/store.js';
import goRoute from './utils/goRoute.js';
import tips from './utils/tips.js'
import storage from './utils/storage.js'
import tools from './utils/tool.js'
import { mixins } from './mixins/index.js';
Vue.mixin(mixins);
App.mpType = 'app';
Vue.prototype.$store = store;
Vue.prototype.$goRoute = goRoute;
Vue.prototype.$tips = tips;
Vue.prototype.$storage = storage;
Vue.prototype.$tools = storage;
const app = new Vue({
	store,
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
export function createApp() {
	const app = createSSRApp(App);
	return {
		app,
	};
}
// #endif
